package com.jihu.design.creatation.factory.abstractfactory;

/**
 * @author jihu
 * @date 2021/9/16
 */
public class MainTest {

    public static void main(String[] args) {
        WuLinFactory wuLinFactory = new WuLinWuHanMaskFactory();
        AbstractCar abstractCar = wuLinFactory.newCar();

        AbstractMask abstractMask = wuLinFactory.newMask();
        abstractMask.protectedMe();

        wuLinFactory = new WuLinHangZhouMaskFactory();
        AbstractMask abstractMask1 = wuLinFactory.newMask();
        abstractMask1.protectedMe();


    }
}
